<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><{$site_title}>管理中心</title>
<{include file="js.html"}>

<style type="text/css">
 .add {
 	margin-left:20px;
	text-decoration:none;
 }
</style>
<script type="text/javascript">
$(function(){
    //权限=>多选
    $(".role").click(function() {  
      var r_id = "";  
      $("input[name=right_name]").each(function() {  
          if ($(this).is(":checked")) {  
              r_id += $(this).val()+",";
          }  
      });  
      $('input:[name=right_id]').val(r_id);
  });  


  $("#myForm").submit(function(){
    return queding('是否保存设置？',".subCheck");
  })

})
</script>

</head>

<body>
<div class="box">
<div style="background:url(images/mainbj.jpg) repeat-x; line-height:31px; height:31px;">
<table border="0" cellpadding="0" cellspacing="0">
<tr><td width="41" align="center">
<img src="images/biao1.jpg" /></td>
<td><strong>当前位置</strong>：管理 &gt; 添加</td>
</tr></table>
</div>

<form action="" method="post" id="myForm" enctype='multipart/form-data'>
<table class="lefttab" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><div style="height:26px; text-align:left; line-height:26px; background:url(images/xbj1.jpg) repeat-x; border:1px solid #e9f5fa;font-weight:bold;">&nbsp;&nbsp;添加</div>
</td></tr>

<tr>
  <td align="right"><font color="#e47c02">*</font> <strong>角色名称</strong>：</td>
  <td width="873" align="left">&nbsp;<input type="text" class="subCheck" name="group_name" value="<{$row.group_name}>" ></td>
</tr>
 <{foreach item=v1 from=$cate}>
<tr>
  <td align="right"><font color="#e47c02">*</font> <strong><{$v1.class_name}>权限</strong>：</td>
  <td width="873" align="left">
 
     &nbsp;
     <{foreach item=loop from=$v1.child}>
      <input type="checkbox" class="role" value="<{$loop.id}>" name="right_name" <{foreach item=right from=$row.right_id}> <{if $right==$loop.id}>checked="checked"<{/if}> <{/foreach}> /><{$loop.right_name}>&nbsp;
     <{/foreach}>
     <br/>
  
  </td>
</tr>
<{/foreach}>
 <input type="hidden" name="right_id" value="<{$right_id}>"/>

<tr><td height="50px" colspan="2"> 
	<p>&nbsp;</p>
    <p align="left" style="margin-left:100px;">
      &nbsp;&nbsp;<input type="submit" name="submit" value="发布" class="inp"/>
      </p>    <p>&nbsp;</p></td>
  </tr>
</table>
</form>

</div>
</body>
</html>
